//
//  GRBlankSpace.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/19.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <XXNibBridge.h>

typedef NS_ENUM(NSUInteger, BlankContentMode) {
    GRBlankContentModeBrokenNetwork = 1,      // 断网
    GRBlankContentModeNotFound,                   // 404
    GRBlankContentModeServerDisconnection,    // 服务器断开 (502)
    GRBlankContentModeRequestTimeOut,          // 请求超时
    GRBlankContentModeSearchLess,                // 搜索为空
    GRBlankContentModeEmptyShopcar,            // 空购物车
    GRBlankContentModeEmptyAddress,            // 空地址
    GRBlankContentModeEmptyCollection,          // 空收藏
    GRBlankContentModeEmptyCoupon,             // 空优惠券
    GRBlankContentModeEmptyEvaluation,         // 空评价
    GRBlankContentModeEmptyOrders,             // 空订单
    GRBlankContentModeEmptyMerchants,        // 首页没有合作商家
    GRBlankContentModeEmptyPaidOrder,         // 空买单
    GRBlankContentModeEmptyBeenShop ,         // 空去过的店
    GRBlankContentModeInvalidShop  ,         //无效店铺
    GRBlankCententModelEmptyInviteFriend,
    GRBlankCententModelEmptyBargainList
};

@protocol GRBlankSpaceDelegate <NSObject>

- (void)didClickBlankButton:(UIButton *)sender;

@end

@interface GRBlankSpace : UIView <XXNibBridge>

@property (nonatomic, weak) id <GRBlankSpaceDelegate> delegate;

@property (nonatomic, assign) BlankContentMode contentMode;


@property (weak, nonatomic) IBOutlet UILabel *prompt;
@property (weak, nonatomic) IBOutlet UIImageView *promptIMG;
@property (weak, nonatomic) IBOutlet UIButton *promptBtn;

@end
